package parser.nodes;

import java.util.HashMap;

import parser.AstNode;
import parser.Memory;

public class AssignmentNode extends AstNode {

	
	/*public Object execute(Memory mem) {
		Object lval = this.lchild.execute(mem);
		Object rval = this.rchild.execute(mem);
		return executeNode(mem,lval,rval);
	}*/
	
	@Override
	protected Object executeNode(HashMap<String,Object> mem, Object lval, Object rval) {
		//System.out.println("assignment node");
		mem.put((String)lval, rval);
		return null;
	}

}
